#ifndef LOGGEDUSERS_H
#define LOGGEDUSERS_H

//QT
#include <QMutex>
#include <QHash>

class LoggedUsers
{
public:
    LoggedUsers();
    void addUserThread(int userId, QThread *thread);
    QThread * getUserThread(int userId);
    void delUserThread(int userId);
private:
    static QMutex mutex;
    static QHash<int, QThread*> usersThreads;
};

#endif // LOGGEDUSERS_H
